import request from "@/utils/request";

export function searchAccountDetail(elderlyCode) {
  return request({
    url: "/sinohis/pension/bill/checkin/detail/"+elderlyCode,
    method: "get"
  });
}

//充值押金
export function rechargeDeposit(data) {
  return request({
    url: "/sinohis/pension/bill/checkin/rechargeDeposit",
    method: "post",
    data
  });
}

//充值预交金
export function rechargeAdvancePayment(data) {
  return request({
    url: "/sinohis/pension/bill/checkin/rechargeAdvancePayment",
    method: "post",
    data
  });
}

//退押金
export function refundDeposit(data) {
  return request({
    url: "/sinohis/pension/bill/checkin/refundDeposit",
    method: "post",
    data
  });
}

//退预缴金
export function refundAdvancePayment(data) {
  return request({
    url: "/sinohis/pension/bill/checkin/refundAdvancePayment",
    method: "post",
    data
  });
}

//预缴金消费
export function advancePayment(data) {
  return request({
    url: "/sinohis/pension/bill/checkin/advancePayment",
    method: "post",
    data
  });
}

//预缴金消费
export function searchFeeDetails(accountNumber, params) {
  return request({
    url: "/sinohis/pension/bill/checkin/searchFeeDetails/"+accountNumber,
    method: "get",
    params
  });
}

//预缴金消费
export function searchBasicMonthlyFees(checkInMark) {
  return request({
    url: "/sinohis/pension/bill/basic/monthlyFee/"+checkInMark,
    method: "get"
  });
}

//添加月费
export function addBasicMonthlyFee(checkInMark, data) {
  return request({
    url: "/sinohis/pension/bill/basic/addBasicMonthlyFee/"+checkInMark,
    method: "post",
    data
  });
}

//删除月费
export function removeBasicMonthlyFee(feeMark) {
  return request({
    url: "/sinohis/pension/bill/basic/removeBasicMonthlyFee/"+feeMark,
    method: "delete"
  });
}
